JavaScript Interview Questions and Answers
Question: What does "1"+2+4 evaluate to?Answer: Since 1 is a string, everything is a string, so the result is 124. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What are JavaScript data types?
- What\'s relationship between JavaScript and ECMAScript?
- What does isNaN function do?
- How do you convert numbers between different bases in JavaScript?
- What is negative infinity?